package com.longxiao.vo;

import com.longxiao.validator.anno.ValiNotBlank;
import com.longxiao.validator.anno.ValiNumber;
import com.longxiao.validator.anno.ValiString;

import java.util.List;
import java.util.Map;

/**
 * 消息推送请求
 *
 * @author kunyang
 */
public class PushMessageVo {

    /** 用户类型，教师：2，学生：1 */
    @ValiNumber(ref = {1, 2}, err = "错误的用户类型")
    private int userType;

    /** 用户标识列表 */
    @ValiNotBlank(err = "错误的用户识别列表")
    private List<String> userIds;

    /** 通知栏标题 */
    private String title;

    /** 消息内容 */
    private String content;

    /** 操作系统版本 */
    private Map<String, Object> extMap;

    public List<String> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<String> userIds) {
        this.userIds = userIds;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Map<String, Object> getExtMap() {
        return extMap;
    }

    public void setExtMap(Map<String, Object> extMap) {
        this.extMap = extMap;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    @Override
    public String toString() {
        return "PushMessageVo{" +
                "userType='" + userType + '\'' +
                ", userIds=" + userIds +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", extMap=" + extMap +
                '}';
    }
}
